/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.dp.vo;

import java.io.Serializable;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

/**
 *
 * @author wyr
 */
@Entity
@Table(name = "t_tj_adsaccess")
//@NamedQueries({@NamedQuery(name = "TTjAdsAccess.findAll", query = "SELECT t FROM TTjAdsAccess t"), @NamedQuery(name = "TTjAdsAccess.findById", query = "SELECT t FROM TTjAdsAccess t WHERE t.id = :id"),  @NamedQuery(name = "TTjAdsAccess.findByad_name", query = "SELECT t FROM TTjAdsAccess t WHERE t.ad_name = :ad_name"), @NamedQuery(name = "TTjAdsAccess.findByCyear", query = "SELECT t FROM TTjAdsAccess t WHERE t.cyear = :cyear"), @NamedQuery(name = "TTjAdsAccess.findByCmonth", query = "SELECT t FROM TTjAdsAccess t WHERE t.cmonth = :cmonth"),@NamedQuery(name = "TTjAdsAccess.findByCday", query = "SELECT t FROM TTjAdsAccess t WHERE t.cday = :cday"), @NamedQuery(name = "TTjAdsAccess.findByAccessnumber", query = "SELECT t FROM TTjAdsAccess t WHERE t.accessnumber = :accessnumber")})
public class TTjAdsAccess implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(name = "id")
    private Integer id;
    @Column(name = "cyear")
    private String cyear;
    @Column(name = "cmonth")
    private String cmonth;
    @Column(name = "cday")
    private String cday;
    @Column(name = "ad_name")
    private String ad_name;
    @Column(name = "accessnumber")
    private Integer accessnumber;

    public TTjAdsAccess() {
    }

    public TTjAdsAccess(Integer id) {
        this.id = id;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCyear() {
        return cyear;
    }

    public void setCyear(String cyear) {
        this.cyear = cyear;
    }

    public String getCmonth() {
        return cmonth;
    }

    public void setCmonth(String cmonth) {
        this.cmonth = cmonth;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (id != null ? id.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof TTjAdsAccess)) {
            return false;
        }
        TTjAdsAccess other = (TTjAdsAccess) object;
        if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.dp.vo.TTjAdsAccess[id=" + id + "]";
    }

	/**
	 * cday
	 *
	 * @return  the cday
	 * @since   CodingExample Ver(编码范例查看) 1.0
	 */
	
	public String getCday() {
		return cday;
	}

	/**
	 * @param cday the cday to set
	 */
	public void setCday(String cday) {
		this.cday = cday;
	}

	/**
	 * ad_name
	 *
	 * @return  the ad_name
	 * @since   CodingExample Ver(编码范例查看) 1.0
	 */
	
	public String getAd_name() {
		return ad_name;
	}

	/**
	 * @param ad_name the ad_name to set
	 */
	public void setAd_name(String ad_name) {
		this.ad_name = ad_name;
	}

	/**
	 * accessnumber
	 *
	 * @return  the accessnumber
	 * @since   CodingExample Ver(编码范例查看) 1.0
	 */
	
	public Integer getAccessnumber() {
		return accessnumber;
	}

	/**
	 * @param accessnumber the accessnumber to set
	 */
	public void setAccessnumber(Integer accessnumber) {
		this.accessnumber = accessnumber;
	}

}
